require File.dirname(__FILE__) + '/spec_helper'

describe "pdf conversion" do

  convert_file "imagematrix.pdf" do
    pixel_at(22,239).should_be_of_color 0xff00ff
    pixel_at(45,240).should_be_of_color 0x0000ff
    pixel_at(72,239).should_be_of_color 0xffff00
    pixel_at(98,236).should_be_of_color 0xff0000
    pixel_at(99,312).should_be_of_color 0xffffff
    pixel_at(80,312).should_be_of_color 0xff00ff
    pixel_at(46,312).should_be_of_color 0x00ffff
    pixel_at(26,314).should_be_of_color 0x0000ff
    pixel_at(21,385).should_be_of_color 0xffff00
    pixel_at(46,384).should_be_of_color 0xff00ff
    pixel_at(71,384).should_be_of_color 0x00ff00
    pixel_at(95,383).should_be_of_color 0x0000ff
    pixel_at(97,459).should_be_of_color 0x00ffff
    pixel_at(75,460).should_be_of_color 0x0000ff
    pixel_at(50,460).should_be_of_color 0xffffff
    pixel_at(23,461).should_be_of_color 0x00ff00
    pixel_at(216,436).should_be_of_color 0xff00ff
    pixel_at(213,415).should_be_of_color 0x0000ff
    pixel_at(214,386).should_be_of_color 0xffff00
    pixel_at(216,360).should_be_of_color 0x00ff00
    pixel_at(234,364).should_be_of_color 0xffffff
    pixel_at(235,388).should_be_of_color 0xff00ff
    pixel_at(233,416).should_be_of_color 0x00ffff
    pixel_at(237,431).should_be_of_color 0x0000ff
    pixel_at(260,433).should_be_of_color 0xffff00
    pixel_at(263,414).should_be_of_color 0xff00ff
    pixel_at(261,393).should_be_of_color 0x00ff00
    pixel_at(263,365).should_be_of_color 0x0000ff
    pixel_at(291,363).should_be_of_color 0x00ffff
    pixel_at(288,390).should_be_of_color 0x0000ff
    pixel_at(285,412).should_be_of_color 0xffffff
    pixel_at(285,437).should_be_of_color 0xff0000
    pixel_at(286,287).should_be_of_color 0x00ffff
    pixel_at(265,287).should_be_of_color 0x0000ff
    pixel_at(244,290).should_be_of_color 0xffffff
    pixel_at(219,290).should_be_of_color 0x00ff00
    pixel_at(209,270).should_be_of_color 0xffff00
    pixel_at(238,266).should_be_of_color 0xff00ff
    pixel_at(266,265).should_be_of_color 0x00ff00
    pixel_at(283,265).should_be_of_color 0x0000ff
    pixel_at(289,236).should_be_of_color 0xffffff
    pixel_at(264,237).should_be_of_color 0xff00ff
    pixel_at(238,241).should_be_of_color 0x00ffff
    pixel_at(216,235).should_be_of_color 0x0000ff
    pixel_at(210,213).should_be_of_color 0xff00ff
    pixel_at(238,213).should_be_of_color 0x0000ff
    pixel_at(267,211).should_be_of_color 0xffff00
    pixel_at(287,211).should_be_of_color 0xff0000
    pixel_at(257,118).should_be_of_color 0x00ffff
    pixel_at(262,96).should_be_of_color 0x0000ff
    pixel_at(263,69).should_be_of_color 0xffffff
    pixel_at(262,43).should_be_of_color 0xff0000
    pixel_at(285,41).should_be_of_color 0xffff00
    pixel_at(290,67).should_be_of_color 0xff00ff
    pixel_at(288,92).should_be_of_color 0x00ff00
    pixel_at(285,115).should_be_of_color 0x0000ff
    pixel_at(312,120).should_be_of_color 0xffffff
    pixel_at(311,94).should_be_of_color 0xff00ff
    pixel_at(310,69).should_be_of_color 0x00ffff
    pixel_at(311,45).should_be_of_color 0x0000ff
    pixel_at(335,44).should_be_of_color 0xff00ff
    pixel_at(335,67).should_be_of_color 0x0000ff
    pixel_at(337,94).should_be_of_color 0xffff00
    pixel_at(337,119).should_be_of_color 0x00ff00
    pixel_at(367,310).should_be_of_color 0xff00ff
    pixel_at(390,290).should_be_of_color 0x0000ff
    pixel_at(406,277).should_be_of_color 0xffff00
    pixel_at(426,260).should_be_of_color 0xff0000
    pixel_at(438,280).should_be_of_color 0xffffff
    pixel_at(418,296).should_be_of_color 0xff00ff
    pixel_at(404,308).should_be_of_color 0x00ffff
    pixel_at(380,324).should_be_of_color 0x0000ff
    pixel_at(401,344).should_be_of_color 0xffff00
    pixel_at(415,330).should_be_of_color 0xff00ff
    pixel_at(434,314).should_be_of_color 0x00ff00
    pixel_at(451,301).should_be_of_color 0x0000ff
    pixel_at(472,316).should_be_of_color 0x00ffff
    pixel_at(452,333).should_be_of_color 0x0000ff
    pixel_at(434,349).should_be_of_color 0xffffff
    pixel_at(415,362).should_be_of_color 0x00ff00
    pixel_at(375,484).should_be_of_color 0xff00ff
    pixel_at(360,518).should_be_of_color 0x0000ff
    pixel_at(343,552).should_be_of_color 0xffff00
    pixel_at(334,585).should_be_of_color 0x00ff00
    pixel_at(379,574).should_be_of_color 0xffffff
    pixel_at(392,538).should_be_of_color 0xff00ff
    pixel_at(406,505).should_be_of_color 0x00ffff
    pixel_at(420,472).should_be_of_color 0x0000ff
    pixel_at(468,456).should_be_of_color 0xffff00
    pixel_at(455,496).should_be_of_color 0xff00ff
    pixel_at(438,527).should_be_of_color 0x00ff00
    pixel_at(427,558).should_be_of_color 0x0000ff
    pixel_at(515,443).should_be_of_color 0xff0000
    pixel_at(504,480).should_be_of_color 0xffffff
    pixel_at(489,512).should_be_of_color 0x0000ff
    pixel_at(477,547).should_be_of_color 0x00ffff
    pixel_at(520,238).should_be_of_color 0xff0000
    pixel_at(503,222).should_be_of_color 0xffff00
    pixel_at(486,204).should_be_of_color 0x0000ff
    pixel_at(463,187).should_be_of_color 0xff00ff
    pixel_at(478,168).should_be_of_color 0x0000ff
    pixel_at(500,148).should_be_of_color 0xffff00
    pixel_at(516,130).should_be_of_color 0x00ff00
    pixel_at(536,146).should_be_of_color 0xffffff
    pixel_at(517,165).should_be_of_color 0xff00ff
    pixel_at(501,187).should_be_of_color 0x00ffff
    pixel_at(518,198).should_be_of_color 0xff00ff
    pixel_at(533,183).should_be_of_color 0x00ff00
    pixel_at(551,163).should_be_of_color 0x0000ff
    pixel_at(572,178).should_be_of_color 0x00ffff
    pixel_at(553,197).should_be_of_color 0x0000ff
    pixel_at(538,216).should_be_of_color 0xffffff
  end
end
